package com.lin.cloud.disk.entity.pojo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * (DirectoryClosure)实体类
 *
 * @author ljc
 * @since 2020-12-30 21:52:00
 */
@Data
@Document(collection = "directory_closure", language = "utf-8")
public class DirectoryClosure {

    public static final String COLLECTION_NAME = "directory_closure";

    private static final long serialVersionUID = -1L;

    @Id
    @ApiModelProperty(value = "id", name = "id")
    private Long id;

    @ApiModelProperty(value = "祖先节点ID", name = "ancestor")
    private String ancestor;

    @ApiModelProperty(value = "子孙节点ID", name = "descendant")
    private String descendant;

    @ApiModelProperty(value = "距离 0 同级", name = "distance")
    private Integer distance;

    @ApiModelProperty(value = "公司ID", name = "companyId")
    private String companyId;

    @ApiModelProperty(value = "用户ID", name = "userId")
    private String userId;

    @ApiModelProperty(value = "是否为Root目录 0 不是 1 是", name = "isRoot")
    private Integer isRoot;

}